package com.company;

import org.junit.Assert;

import static org.junit.Assert.*;

public class NGuessNumberTest {

    private NGuessNumber nGuessNumber;

    @org.junit.Before
    public void setUp() throws Exception {
        System.out.println("测试开始");
    }

    @org.junit.After
    public void tearDown() throws Exception {
        System.out.println("测试结束");
    }

    @org.junit.Test
    public void getPlayerInput() {
//        Assert.assertEquals(4,NGuessNumber.getPlayerInput().length);
//        Assert.assertEquals(4,NGuessNumber.generateAnswer().length);
        Assert.assertEquals(4,NGuessNumber.compareGuessAnswer(NGuessNumber.generateAnswer(),NGuessNumber.getPlayerInput()));

    }
}
